package java2;
import java.util.*;

enum Grade
{
	A,B,C,D,E;	
}
public class java2_6 {

	

	public static void main(String[] args) {
         Scanner input=new Scanner(System.in);
         for(int i=0;;i++) 
         {
        	 int grade=input.nextInt();
        	 Grade test=GetGrade(grade);
        	 switch(test)
        	 {
        	 case A:
        	    {
        	       System.out.println("Excellent");
        	       printGradeInfo(test);
        	       break;
        	    }
        	 case B:
        	    {
        		   System.out.println("Good");
        		   printGradeInfo(test);
        		   break;
        	    }
        	 case C:
        	    {
        	    	System.out.println("Average");
         		    printGradeInfo(test);
         		    break;
        	    }
        	 case D:
        	    {
        	    	System.out.println("Fair");
         		    printGradeInfo(test);
         		    break;
        	    }
        	 case E:
        	    {
        	    	System.out.println("Poor");
         		    printGradeInfo(test);
         		    break;
        	    }
        	 }
         }
	}
	

	 private static void printGradeInfo(Grade grade) {
		
		 System.out.println("class name="+Grade.class);
	       System.out.println("grade value="+grade);
	}

	static Grade GetGrade(int score) {
	if((score>=90) && (score<=100))  return Grade.A;
	else if((score>=80) && (score<90))  return Grade.B;
	else if((score>=70) && (score<80))  return Grade.C;
	else if((score>=60) && (score<70))  return Grade.D;
	else return Grade.E ;
	
	}

}
